//
//  UIFont+YSExtension.m
//  YSKitDemo
//
//  Created by Kyson on 2018/9/28.
//  Copyright © 2018 YangShen. All rights reserved.
//

#import "UIFont+YSExtension.h"

@implementation UIFont (YSExtension)

/// 苹方极细体
+ (instancetype)ys_fontForPingFangSC_UltralightFontOfSize:(CGFloat)fontSize {
    return [UIFont fontWithName:@"PingFangSC-Ultralight" size:fontSize];
}

/// 常规体
+ (instancetype)ys_fontForPingFangSC_RegularFontOfSize:(CGFloat)fontSize {
    return [UIFont fontWithName:@"PingFangSC-Regular" size:fontSize];
}

/// 中粗体
+ (instancetype)ys_fontForPingFangSC_SemiboldFontOfSize:(CGFloat)fontSize {
    return [UIFont fontWithName:@"PingFangSC-Semibold" size:fontSize];
}

/// 纤细体
+ (instancetype)ys_fontForPingFangSC_ThinFontOfSize:(CGFloat)fontSize {
    return [UIFont fontWithName:@"PingFangSC-Thin" size:fontSize];
}

/// 细体
+ (instancetype)ys_fontForPingFangSC_LightFontOfSize:(CGFloat)fontSize {
    return [UIFont fontWithName:@"PingFangSC-Light" size:fontSize];
}

/// 中黑体
+ (instancetype)ys_fontForPingFangSC_MediumFontOfSize:(CGFloat)fontSize {
    return [UIFont fontWithName:@"PingFangSC-Medium" size:fontSize];
}

@end
